package com.bridgeintelligent.tag.customer.looklike;

import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum OperationEnum {

    CREATE("1","创建客群"),
    UPDATE("2","编辑客群"),
    UP("3","启动客群"),
    EXPORT("4","导出客群");

    private String code;
    private String name;

    public static  String getName(String code){
        for ( OperationEnum operation :OperationEnum.values()){
            if (operation.code.equals(code)){
                return operation.name;
            }
        }
        return "未知";
    }
}
